package stark.app.function.game;

import com.stark.game.GameEntry;

import stark.app.R;
import stark.app.base.BaseWithFragmentActivity;
import stark.app.databinding.ActivityGameDemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

/**
 * Author：daizhongbin on 2021/8/18
 * Email：1027154338@qq.com
 * Desc: 游戏demo功能界面
 */
public class GameDemoActivity extends BaseNoModelActivity<ActivityGameDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.activity_game_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnTurnTable.setOnClickListener(v -> {
            GameEntry.enterTurnTable(this);
        });
        mDataBinding.btnCrazyBomb.setOnClickListener(v -> {
            GameEntry.enterCrazyBomb(this);
        });
        mDataBinding.btnFingerTurn.setOnClickListener(v -> {
            GameEntry.enterFingerTurn(this);
        });
        mDataBinding.btnShuDu.setOnClickListener(v -> {
            GameEntry.enterShuDu(this);
        });
        mDataBinding.btnJfcz.setOnClickListener(v -> {
            startActivity(JfczDemoActivity.class);
        });
        mDataBinding.btnDice.setOnClickListener(v -> {
            BaseWithFragmentActivity.start(this, "投骰子", DiceDemoFragment.class);
        });
        mDataBinding.btnYibi.setOnClickListener(v -> {
            GameEntry.enterYibi(this);
        });
        mDataBinding.btnFindDiffWord.setOnClickListener(v -> {
            GameEntry.enterFindDiffWord(this);
        });
    }

    @Override
    protected void initData() {

    }
}
